﻿@{
    ViewBag.Title = Setting.SiteName;
    Layout = "_Layout.cshtml";
}
<!--正文开始-->
<div class="main">
    <%foreach (var item in Posts){%>
    <ul class="post">
        <li>
            <h2>
                <a href="<%=item.Url %>" title="详细阅读 <%=item.Title %>"><%=item.Title %></a><%if (item.IsNew){ %><span class="new"><img src="../themes/default/images/new.gif" alt="较新的文章" title="较新的文章"></span><%} %></h2>
            <div class="post_date"><span class="date_m"><%=item.PubDate.ToString("MMM") %></span><span class="date_d"><%=item.PubDate.ToString("dd") %></span><span class="date_y"><%=item.PubDate.ToString("yyyy") %></span></div>
            <div class="article">
                <div class="thumbnail_box">
                    <div class="thumbnail">
                        <a href="<%=item.Url %>" title="<%=item.Title %>">
                            <img src="<%=item.Img %>" alt="<%=item.Title %>" title="<%=item.Title %>" style="opacity: 1; width: 140px; height: 100px">
                        </a>
                    </div>
                </div>
                <div class="entry_post">
                    <p><%=item.Detail %></p>
                    <div class="more"><a href="<%=item.Url %>" title="详细阅读 <%=item.Title %>" rel="bookmark">阅读全文</a></div>
                </div>
                <div class="clear"></div>
                <div class="info">作者：<%=item.Author.NickName %> | 分类：<%=item.CategoryLink %> | 热度：<%=item.ViewCount %> ℃ | 标签：<%=item.Tags %></div>
                <div class="comments_num"><a href="<%=item.Url+"#comment" %>" title="《<%=item.Title %>》上的评论"><%=(item.CommentCount > 0 ? item.CommentCount+"条评论" : "抢沙发") %></a></div>
            </div>
        </li>
    </ul>
    <div class="clear"></div>
    <%} %>
    <div class="navigation">
        <div class="pagination"><%=PagedLink %></div>
    </div>
</div>